package com.xiangge.zuoye.Demo1;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 14:19
 * @description 设计师类
 */
public class Designer extends Progeammer{
    private double bonus;

    public Designer(double bonus) {
        this.bonus = bonus;
    }

    public Designer(Integer id, String name, Integer age, double salary, String bcyy, double bonus) {
        super(id, name, age, salary, bcyy);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public void getInfo(){
        System.out.println("编号："+getId()+",姓名："+getName()+
                ",年龄："+getAge()+",薪资："+Designer.this.getSalary()+
                ",编程语言："+bcyy+
                ",奖金"+getBonus()+
                "，职位：设计师");
    }

    @Override
    public String toString() {
        return "Designer{" +
                "bonus=" + bonus +
                '}';
    }
}
